const Router = require('koa-router');
const AuthController = require('../controllers/authController');

const router = new Router();
const authController = new AuthController();

// 授权相关路由
router.get('/captcha', authController.getCaptcha.bind(authController));
router.post('/login', authController.login.bind(authController));
router.post('/refresh', authController.refreshToken.bind(authController));
router.post('/logout', authController.logout.bind(authController));

module.exports = router;